import { axios_get, axios_post, axios_delete, axios_put } from './http.js'


export const user_register = p => axios_post("/myapp/register/", p) 
export const get_email = p => axios_post("/myapp/sendemail/", p) 
export const get_phone = p => axios_post("/myapp/sendphone/", p) 
export const user_login = p => axios_post("/myapp/userlogin/", p) 
export const get_dingurl = p => axios_get("/myapp/ding_url/", p) 
export const get_user = p => axios_get("/myapp/userview/", p) 
export const delete_user = p => axios_delete("/myapp/userview/", p) 
export const put_user = p => axios_put("/myapp/userview/", p) 
export const get_user_img = p => axios_get("/myapp/userphoto/", p) 

// 工单请求
export const post_work = p => axios_post("/myapp/worktypeapi/", p) 
export const get_work = p => axios_get("/myapp/worktypeapi/?wid="+p, p) 
export const delete_work = p => axios_delete("/myapp/worktypeapi/", p) 
export const update_work = p => axios_put("/myapp/worktypeapi/", p) 
export const post_w = p => axios_post("/myapp/workapi/", p) 
export const get_task = p => axios_get("/myapp/taskapi/", p)
export const get_one_task = p => axios_get("/myapp/getonework/?task_id="+p, p)
export const put_task = p => axios_put("/myapp/taskapi/", p)
export const get_mywork = p => axios_get("/myapp/myworkapi/?work_id="+p, p)
export const delete_img = p => axios_delete("/myapp/deleteimg/", p)
export const get_ranking = p => axios_get("/myapp/getranking/", p)

// 消息申请
export const get_message = p => axios_get("/myapp/showmessage/", p)
export const delete_message = p => axios_delete("/myapp/showmessage/", p)
export const send_message = p => axios_post("/myapp/sendmessage/?msg="+p, p)
export const getonlineuser = p => axios_get("/myapp/onlineuser/", p)
export const delete_msg = p => axios_delete("/myapp/onlineuser/", p)
export const get_msg = p => axios_post("/myapp/showmsgrecord/", p)
export const send_message_server = p => axios_post("/myapp/serviceobot/", p)

// export const insert_video = p => axios_post("/oauth/insertvideo/", p)


